﻿using System;
using System.Web;
using Core.Library;
using DataObject.Cart;
using DataObject.Customer;

public partial class Pages_Logout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpContext.Current.Session.Remove("e3group.denhongphuc.customer");        
        HttpContext.Current.Session["e3group.denhongphuc.customer"] = null;
        ShoppingCart.Instance.Items.Clear();
        CustomerController.Logout();
        Response.Redirect(UrlHelpers.Home);
    }
}